package com.z.test;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.jsoup.nodes.Document;

import com.z.dao.ZpInfoDao;
import com.z.dao.impl.ZpInfoDaoImpl;
import com.z.utils.Utils;

/**
 * 爬取第一次爬完之后的子级地址
 * @author 1340105413@qq.com
 *
 */
public class CrawlerOne {
	private ZpInfoDao dao=new ZpInfoDaoImpl();
	private ResultSet resultSet;
	public static void main(String[] args) {
		new CrawlerOne().doMain();
	}
	public void doMain(){
		resultSet=dao.selectList(1, 1);
		try {
			while(resultSet.next()){
				String childPath=resultSet.getString("childPath");
				Document document=Utils.getDocument(childPath);
				System.out.println(document);
			}
		} catch (SQLException e) {
			e.printStackTrace();
		}
	}
}
